﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SmartSiteManagementSystem.Repository.DBHelper
{
    public class DbHelperOptions
    {
        /// <summary>
        /// 读数据库链接字符串
        /// </summary>
        public static string ReadConnectionString { get; set; }

        /// <summary>
        /// 读数据库数据库类型  对应值DbStoreType 枚举
        /// </summary>
        public static int ReadDbStoreType { get; set; }

        /// <summary>
        /// 写数据库链接字符串
        /// </summary>
        public static string WriteConnectionString { get; set; }

        /// <summary>
        /// 写数据库数据库类型  对应值DbStoreType 枚举
        /// </summary>
        public static int WriteDbStoreType { get; set; }

    }

    /*
     mysql <add name="mysqlconnectionString" connectionString="Data Source=127.0.0.1;Database=hyd;User Id=root;Password=zzt123;CharSet=utf8;port=3306"/> 
     */
    public enum DbStoreType
    {
        MySql = 0,
        SqlServer = 1,
        Sqlite = 2,
        Oracle = 3
    }
}
